package com.example.building_material_mannager.service.impl;

import com.example.building_material_mannager.entity.Montype;
import com.example.building_material_mannager.mapper.MontypeMapper;
import com.example.building_material_mannager.service.MontypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MontypeServiceImpl implements MontypeService {
    @Resource
    MontypeMapper montypeMapper;


    @Override
    public  List<Montype> showMontype(Montype montype) {
        List<Montype> montypes = montypeMapper.showMontype(montype);
        return montypes;
    }

    @Override
    public boolean addMontype(Montype montype) {
       boolean re= montypeMapper.addMontype(montype);
        return re;
    }

    @Override
    public boolean delMontype(Integer mid) {
        boolean re= montypeMapper.delMontype(mid);
        return re;
    }

    @Override
    public boolean upMontype(Montype montype) {
        boolean re= montypeMapper.upMontype(montype);
        return re;
    }
}
